package com.example.springbootvue.dao;

import com.example.springbootvue.bean.Teacher;
import com.example.springbootvue.bean.Teacher;
import com.example.springbootvue.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface TeacherMapper {
    public User checklogin(String username, String password);//便于初学阶段vue前端传值

    public List<Teacher> queryAllTea();

    public int addTeacher(Teacher teacher);

    public Teacher queryById(int id);

    public int updateTeacher(Teacher teacher);

    public int deleteTeacher(int id);
}
